import request from '@/utils/request'

// 查看签到
export function getSign(query) {
  return request({
    url: '/system/SignModular/getSign',
    method: 'get',
    params: query
  })
}

// 签到
export function loginSignIn(data) {
  return request({
    url: '/system/SignModular/loginSignIn',
    method: 'post',
	data: data
  })
}


// 用户头像上传
export function uploadAvatar(data) {
  return request({
    url: '/system/user/profile/avatar',
    method: 'post',
    data: data
  })
}

// 获取信息
export function UserInfo(userId) {
  return request({
    url: '/system/UserInfo/' + userId,
    method: 'get'
  })
}

// 查看签到
export function getProfitHistory(query) {
  return request({
    url: '/system/GiftModular/getProfitHistory',
    method: 'get',
    params: query
  })
}

// 查询用户关注直播间
export function getStudioAttention(query) {
  return request({
    url: '/system/UserModular/getStudioAttention',
    method: 'get',
    params: query
  })
}